import tkinter as tk
import time

class Ui:
    def __init__(self):
        self.ui = tk.Tk()
        self.countNum = 0
        self.show()
    def show(self):
        self.ui.geometry("200x200")
        self.label = tk.Label(self.ui,bg="white",text="0 click")
        self.label.place(x=20,y=20,width=160,height=100)
        self.label.bind("<Button-1>",self.count)
        self.ui.mainloop()
    def count(self,event):
        self.countNum += 1
        self.label["text"] = f"{self.countNum} click"
        
ui = Ui()